<template>
  <div class="lx">
    <el-table :data="imgg">
      <el-table-column label="照片">
        <template #default="{row}">
          <img v-imgerr="require('@/assets/common/head.jpg')" :src="row.staffPhoto" alt="">
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { getEmployeeList } from '@/api/employees'
export default {
  data() {
    return {
      imgg: []
    }
  },
  async mounted() {
    const { rows } = await getEmployeeList({ page: 1, size: 10 })
    this.imgg = rows
  }
}
</script>

<style>

</style>
